<template>
  <Render :render="renderFn" :rows="row"></Render>
</template>

<script>
export default {
  name: "RenderPropertyItem",
  components: {
    // 自定义render方法,可通过jsx或render函数自定义表格项
    Render: {
      functional: true,
      render: (h, ctx) => {
        // console.log(ctx);
        return ctx.props.render(h, ctx.props.rows);
      }
    }
  },
  props: {
    renderFn: {
      type: Function
    },
    row: {
      type: Object
    }
  }
};
</script>

<style scoped>
</style>
